-
Notifications
You must be signed in to change notification settings - Fork 164
chore(BA-3306): Upgrade to Python 3.14 #7200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
achimnol
wants to merge
25
commits into
main
Choose a base branch
from
chore/python-3.14-upgrade
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update the target Python version from 3.13.7 to 3.14.1: - pants.toml: interpreter_constraints - pyproject.toml: requires-python, python_executable, pythonVersion, venv
Upgrade packages with native extensions (pyo3/Rust/C) that require newer versions to build wheels for Python 3.14: - pydantic: 2.11.3 → 2.12.0 (pydantic-core pyo3 update) - orjson: 3.10.16 → 3.11.0 (cp314 wheels) - bcrypt: 4.2.0 → 5.0.0 (Python 3.14 support) - memray: 1.17.2 → 1.19.0 (Python 3.14 support) - valkey-glide: 2.0.1 → 2.2.0 (cp314 wheels) - msgpack: 1.1.0 → 1.1.2 (cp314 wheels) - multidict: 6.6.4 → 6.7.0 (Python 3.14 CI) - yarl: 1.19.0 → 1.22.0 (cp314 wheels) - hiredis: 3.0.0 → 3.3.0 (cp314 wheels) - setproctitle: 1.3.5 → 1.3.7 (Python 3.14 support) - aiohttp: 3.12.15 → 3.13.0 (free-threading support)
- Add scripts/fetch-ruff-version.py to fetch and print the ruff version table for use in pants.toml
…ro.py for SCIE builds
- In Python 3.14, we can remove parenthesis around multiple exception types without "as" expressions. Ruff applies this rule by default if its target version is recognized as 3.14.
9552aac to
4af738e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:docs
Documentations
comp:agent
Related to Agent component
comp:common
Related to Common component
comp:manager
Related to Manager component
size:L
100~500 LoC
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #7199 (BA-3306)
pants.tomlpyproject.tomltools/build-macros.pyscripts/python.shscripts/pyscript.shUpgrade pex: 2.50.4 → 2.74.1 (for pip 25.2 → 25.3)sniffioas an explicit dependency (upstream issue: Dependencies: sniffio is missing from glide dependencies - Python valkey-io/valkey-glide#5017)scripts/fetch-ruff-version.pyfor convenient upgrade in the future[tool.ruff].target-version = "py313"inpyproject.tomlfor backport compatibilityetcd-client-pyto build Python 3.14 compatible wheels📚 Documentation preview 📚: https://sorna--7200.org.readthedocs.build/en/7200/
📚 Documentation preview 📚: https://sorna-ko--7200.org.readthedocs.build/ko/7200/